<BR />
<?
  $type_sswap = "";
  if (isset($_GET['type_sswap'])) {
	 $type_sswap = $_GET['type_sswap'];
	}

	if (strcmp($type_sswap, "") == 0){
  
?>
<TABLE>
<TR>
	<TD>
		<A HREF="index.php?page=siteswap&type_sswap=solo" class="blanc"><IMG SRC="images/gal_ss_solo.png"></A>
	</TD>
	<TD>
		<A HREF="index.php?page=siteswap&type_sswap=solo" class="blanc"><IMG SRC="images/img_ss_solo.jpg" WIDTH="200px"></A>
	</TD>
  <TD WIDTH="100px"></TD>
	<TD>
		<A HREF="index.php?page=siteswap&type_sswap=passing" class="blanc"><IMG SRC="images/gal_ss_passing.png"></A>
	</TD>
	<TD>
		<A HREF="index.php?page=siteswap&type_sswap=passing" class="blanc"><IMG SRC="images/img_ss_passing.jpg" WIDTH="200px"></A>
	</TD>
</TR>
</TABLE>

<?
}else{

?>

<DIV ID="nbObject"></DIV>
<DIV ID="enteteSiteSwaps"></DIV>
<BR />
<DIV ID="siteSwaps" align='center'></DIV>
<DIV ID="erreur"></DIV>

<?
  $register = 0;
  if (session_is_registered('login')){
    $register = 1;
  }

  if($register == 1) { 
    if ($type_sswap == "solo"){
  	 echo "<TABLE width='100%'><TD align='center'><A HREF='index.php?page=update_siteswap&type_sswap=solo' class='blanc'>Ajouter un SiteSwap Solo</A></TD></TABLE>";
  	}else{
  	 echo "<TABLE width='100%'><TD align='center'><A HREF='index.php?page=update_siteswap&type_sswap=passing' class='blanc'>Ajouter un SiteSwap Passing</A></TD></TABLE>";
  	}
  } else { 
  	echo "<TABLE width='100%'><TD align='center'><B>Pour proposer un SiteSwap, écrivez à <IMG SRC='images/mail.gif'></B></TD></TABLE>";
  } 
  echo "\n<script language='Javascript'>\n";
  echo "setRegisterSession(".$register.");\n";
  echo "getSiteSwaps('".$type_sswap."',0,'*',0);\n";
  echo "</script>";
}
?>
